{extend name="Public:base" /}
      {block name="seo"}
              <title>{$groupinfo['name']}|话题详情页|{$Think.CONFIG.WEB_SITE_TITLE} - Powered by EasySNS!</title>
  
  
  <meta name="keywords" content="{$Think.CONFIG.WEB_SITE_KEYWORD}">
  <meta name="description" content="{$Think.CONFIG.WEB_SITE_DESCRIPTION}">
      {/block}
{block name="body"}
<div class="aw-container-wrap">


	<div class="container">
		<div class="row">
			<div class="aw-content-wrap clearfix">
				<div class="col-sm-12 col-md-9 aw-main-content">
					<div class="aw-mod aw-topic-detail-title">
						<div class="mod-body">
							
							<img src="{$groupinfo['cover_id']|get_groupavatar}" alt="{$groupinfo['name']}" style="width:50px;height:50px;">
							
							<div class="pull-left ">
							<h2>{$groupinfo['name']} <div class="pull-right es-margin-l-10">{if condition="$groupinfo['hassc'] eq 1"}
								<a href="javascript:;" onclick="AWS.User.follow($(this), 'huati', {$groupinfo['id']});" class="follow btn btn-sm btn-success pull-left active"><span>取消关注</span> <em>|</em> <b>{$groupinfo['focuscount']}</b></a>
		{else/}
									<a href="javascript:;" onclick="AWS.User.follow($(this), 'huati', {$groupinfo['id']});" class="follow btn btn-sm btn-success pull-left "><span>关注</span> <em>|</em> <b>{$groupinfo['focuscount']}</b></a>
	
		{/if}</div></h2>
							
												<div class="media-metas clearfix ">

      
        <span class="">{$groupinfo['topiccount']}个帖子</span>
        <span class="fsn es-margin-l-10">创建时间：{$groupinfo['create_time']|friendlyDate}</span>

      </div>
							</div>
							
						{if condition="session('member_info')"}	
							<div class="aw-topic-operate text-color-999">
							
									<a class="btn btn-normal btn-success" href="{:es_url('Topic/topicadd',array('name'=>$groupinfo['name']))}"><i class="iconfont icon-fabu2"></i> 发帖</a>
						
							                         
		</div>
		
		
	{/if}
						</div>
																				      
					</div>

					<div class="aw-mod aw-topic-list-mod">
						<div class="mod-head">
							<div class="tabbable">
								<!-- tab 切换 -->
								<ul class="nav nav-tabs aw-nav-tabs hidden-xs">
									<li {if condition="$order eq 1"}class="active"{/if}><a href="{:es_url('Topic/index',array('order'=>1,'name'=>$groupinfo['name']))}" >全部内容</a></li>
							
																		<li {if condition="$order eq 2"}class="active"{/if}><a href="{:es_url('Topic/index',array('order'=>2,'name'=>$groupinfo['name']))}" >推荐</a></li>
																		{if condition="session('member_info')"}	
																		<li {if condition="$order eq 3"}class="active"{/if}><a href="{:es_url('Topic/index',array('order'=>3,'name'=>$groupinfo['name']))}" id="i_favorite"  >我的收藏</a></li>
									                                    {/if}
										<div class="paixu pull-right">
								<span><a href="{:es_url('Topic/index',array('order'=>$order,'paixu'=>1,'name'=>$groupinfo['name']))}" {if condition="$paixu eq 1"}class="active"{/if}>按回帖时间</a></span>
								<span class="fly-mid">|</span>
								<span><a href="{:es_url('Topic/index',array('order'=>$order,'paixu'=>2,'name'=>$groupinfo['name']))}" {if condition="$paixu eq 2"}class="active"{/if}>按发表时间</a></span>
								</div>
								</ul>
								<!-- end tab 切换 -->
							</div>
						</div>

						<div class="mod-body">
							<!-- tab 切换内容 -->
							<div class="tab-content">
								<div class="tab-pane active" id="all">
									<!-- 推荐问题 -->
									<!-- end 推荐问题 -->
									<div class="aw-mod">
										<div class="mod-body">
											<div class="aw-common-list" id="c_all_list">
												
						{volist name="topiclist" id="vo"}
							
							
							
								<div class="aw-item" id="aw-item_0">
	<div class="aw-user-imgs">
	<a class="aw-user-name aw-user-name-o hidden-xs" data-id="{$vo['uid']}"  href="{:es_url('user/home',array('id'=>$vo['uid']))}" rel="nofollow">
	<img src="{$vo.userhead|getheadurl}" alt="{$vo['nickname']}">
	<p>{$vo['nickname']}</p>
	
	{if condition="$vo['rzstatus']"}
	<i class="iconfont {$vo['rzicon']}"></i>
	{/if}
	</a>	
	
	<div class="userline hidden-xs" id="userline_0"></div>
	</div>
	<div class="aw-question-content" id="aw-question-content_0">
					<div class="">
	<a class="aw-user-name aw-user-name-o visible-xs" data-id="{$vo['uid']}"  href="{:es_url('user/home',array('id'=>$vo['uid']))}" rel="nofollow">
	<img src="{$vo.userhead|getheadurl}" alt="{$vo['nickname']}">
	<p>{$vo['nickname']}</p>
	
	{if condition="$vo['rzstatus']"}
	<i class="iconfont {$vo['rzicon']}"></i>
	{/if}
	</a>	
	
	
	</div>
				<div class="pull-right">
			<div class=""><i class="iconfont icon-zan2"></i>
			{$vo.praise}			</div>
		</div>
		<p>
		{if condition="$vo.settop eq 1"}<span class="label label-danger es-margin-r-5">置顶</span>{/if}
						
			<span class="text-color-999">
							{$vo.replystr}{if condition="$vo['tid'] gt 0"}  • <a class="aw-question-tags" href="{:es_url('topic/cindex',array('id'=>$vo['tid']))}">{$vo.tid|get_topiccatename}</a>{/if}</span>
						 									{if condition="$vo.choice eq 1"}<span class="spanb_a">荐</span>	{/if}									</p>
		<h4>
						<a class="listlink" href="{:es_url('Topic/gview',array('id'=>$vo['id']))}">{$vo.title}</a>
							
					</h4>			
		<div class="inner clearfix">
				<p class="question-text" style=" color: #666; font-size:13px;">
			{$vo['description']}</p>
						<div class="inners clearfix">
		<div class="row">
		
		{if condition="$vo['imagescount'] gt 0" }
		{volist name="vo['imagesarr']" id="imagesubvo" key="okey"}
			<div class="shibox shiboximg col-xs-4 col-sm-4 col-md-4">
					{if condition="$okey eq 1"}
				<div class="num">共{$vo['imagescount']}张</div>
				{/if}
				<a href="{:es_url('Topic/gview',array('id'=>$vo['id']))}" target="_blank" >
				<img class="img-polaroidst img-responsive" src="{$imagesubvo}" alt="{$vo.title}" >
				</a>
			</div>
			{/volist}
		{/if}		
					</div>
		</div>
				<div class="awfo-box">
				
				{if condition="$vo['reply'] gt 0"}
												<a href="{:es_url('user/home',array('id'=>$vo['replyuid']))}" class="aw-user-name" data-id="{$vo['replyuid']}">{$vo['replyuser']}</a> 
				<span class="text-color-9999 idown">评论了帖子 &nbsp;&nbsp;
				{/if}
				
				<i class="iconfont icon-liulan fz16"></i> {$vo.view} 浏览 &nbsp;&nbsp;<i class="iconfont icon-chat fz16"></i> {$vo.reply} <em>评论</em></span>
											</div>
		</div>
				
		
	</div>
</div>
{/volist}

											</div>
										</div>
										<div class="mod-footer">
											<div class="page-control">
							{$page}
							</div>
										</div>
									</div>
								</div>


							

								

							

						
							</div>
							<!-- end tab 切换内容 -->
						</div>
					</div>
				</div>

				<!-- 侧边栏 -->
				<div class="col-sm-12 col-md-3 aw-side-bar hidden-xs">
					<!-- 话题描述 -->
					<div class="aw-mod aw-text-align-justify">

						<div class="mod-head">
							<h3>话题描述</h3>
						</div>
						<div class="mod-body">
														<p>{$groupinfo['describe']|html_entity_decode}</p>
													</div>
					</div>
					<!-- end 话题描述 -->

					<div class="aw-mod topic-about">
	<div class="mod-head">
		<h3>相关话题</h3>
	</div>
	<div class="mod-body" data-type="topic">
		<div class="aw-topic-bar" data-type="topic" data-id="79">
			<div class="tag-bar clearfix">
			{volist name="grouplist" id="vo"}		
					<span class="topic-tag" >
						<a class="text" href="{:es_url('Topic/index',array('name'=>$vo['name']))}">{$vo['name']}</a>
					</span>	
				{/volist}	
					
					
																</div>
		</div>
	</div>
</div>
					
					

					<!-- xx人关注该话题 -->
					<div class="aw-mod topic-status">
						<div class="mod-head">
							<h3>{$focuscount} 人关注该话题</h3>
						</div>
						<div class="mod-body">
							<div id="focus_users" class="aw-border-radius-5">
							{volist name="memberlist" id="vo"}		
	                             <a href="{:es_url('user/home',array('id'=>$vo['id']))}"><img src="{$vo.userhead|getheadurl}" alt="{$vo['nickname']}"></a>
							{/volist}
							
					 </div>
						</div>
					</div>
					<!-- end xx人关注该话题 -->

					<!-- 话题修改记录 -->
										<!-- end 话题修改记录 -->

									</div>
				<!-- end 侧边栏 -->
			</div>
		</div>
	</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">

	var CONTENTS_TOPIC_ID ="{$groupinfo['id']}";

	var CONTENTS_TOPIC_TITLE = "{$groupinfo['name']}";
</script>

{/block}